import QtQuick
import FluentUI
import QtQuick.Controls

// 首页功能区
FluRectangle {
    width: mainWindow.width * 0.81
    height: mainWindow.height * 0.98
    color: "transparent"

    // 首页文字和个人中心按钮
    Loader {
        id: homeTopRow
        anchors.left: parent.left
        anchors.right: parent.right
        source: "TopRow.qml"
        z: 1
    }

    // 历史数据和评测报告
    Row {
        y: mainWindow.height * 0.13
        anchors.left: parent.left
        anchors.right: parent.right
        spacing: mainWindow.width * 0.02

        // 历史数据
        Loader {
            id: historyData
            width: mainWindow.width * 0.53
            height: mainWindow.height * 0.35
            source: "HistoryData.qml"
        }

        // 评测报告
        Loader {
            id: evaluationReport
            width: mainWindow.width * 0.26
            height: mainWindow.height * 0.35
            source: "EvaluationReport.qml"
        }
    }

    // 转化详细和快速开始
    Row {
        y: mainWindow.height * 0.48 + mainWindow.width * 0.02
        anchors.left: parent.left
        anchors.right: parent.right
        spacing: mainWindow.width * 0.02

        // 转化详细
        Loader {
            id: conversionDetails
            width: mainWindow.width * 0.53
            height: mainWindow.height * 0.47 - mainWindow.width * 0.02
            source: "ConversionDetails.qml"
        }

        // 快速开始
        Loader {
            id: quickStart
            width: mainWindow.width * 0.26
            height: mainWindow.height * 0.47 - mainWindow.width * 0.02
            source: "QuickStart.qml"
        }
    }
}
